package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 四级地域对象 district
 *
 * @author MagicCube
 * @date 2023-05-10
 */
public class SysDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区划信息id */
    private Long id;

    /** 父级挂接id */
    @Excel(name = "父级挂接id")
    private Long pid;

    /** 区划编码 */
    @Excel(name = "区划编码")
    private String code;

    /** 区划名称 */
    @Excel(name = "区划名称")
    private String name;

    /** 状态 0 正常 -2 删除 -1 停用 */
    @Excel(name = "状态 0 正常 -2 删除 -1 停用")
    private Integer status;

    /** 级次id 0:省/自治区/直辖市 1:市级 2:县级 */
    @Excel(name = "级次id 0:省/自治区/直辖市 1:市级 2:县级")
    private Integer level;

    /** 经纬度 */
    @Excel(name = "经纬度")
    private String center;

    /** 城市编码（无用） */
    @Excel(name = "城市编码", readConverterExp = "无=用")
    private String cityCode;

    /** 是否热门城市 (0:否，1：是)*/
    private Integer isHot;

    /** 城市首字母 */
    private String initial;

    public String getInitial() {
        return initial;
    }

    public void setInitial(String initial) {
        this.initial = initial;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setCenter(String center)
    {
        this.center = center;
    }

    public String getCenter()
    {
        return center;
    }
    public void setCityCode(String cityCode)
    {
        this.cityCode = cityCode;
    }

    public String getCityCode()
    {
        return cityCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("code", getCode())
            .append("name", getName())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("level", getLevel())
            .append("center", getCenter())
            .append("cityCode", getCityCode())
            .toString();
    }
}
